import {MockMethod} from 'vite-plugin-mock'
import {baseApi} from "../../config";

export default [
    {
        url: `${baseApi}/system/monitor/server`,
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "cpuAvg15": "0.58",
                    "cpuAvg5": "0.58",
                    "cpuNum": 4,
                    "cpuUsed": 53.91,
                    "diskList": [
                        {
                            "path": "C:",
                            "fstype": "",
                            "total": 119426224128,
                            "free": 7028060160,
                            "used": 112398163968,
                            "usedPercent": 94.12,
                            "inodesTotal": 0,
                            "inodesUsed": 0,
                            "inodesFree": 0,
                            "inodesUsedPercent": 0
                        },
                        {
                            "path": "D:",
                            "fstype": "",
                            "total": 107375226880,
                            "free": 75130036224,
                            "used": 32245190656,
                            "usedPercent": 30.03,
                            "inodesTotal": 0,
                            "inodesUsed": 0,
                            "inodesFree": 0,
                            "inodesUsedPercent": 0
                        },
                        {
                            "path": "X:",
                            "fstype": "",
                            "total": 298501271552,
                            "free": 14188941312,
                            "used": 284312330240,
                            "usedPercent": 95.25,
                            "inodesTotal": 0,
                            "inodesUsed": 0,
                            "inodesFree": 0,
                            "inodesUsedPercent": 0
                        },
                        {
                            "path": "Y:",
                            "fstype": "",
                            "total": 297427529728,
                            "free": 125746085888,
                            "used": 171681443840,
                            "usedPercent": 57.72,
                            "inodesTotal": 0,
                            "inodesUsed": 0,
                            "inodesFree": 0,
                            "inodesUsedPercent": 0
                        },
                        {
                            "path": "Z:",
                            "fstype": "",
                            "total": 296895901696,
                            "free": 185974575104,
                            "used": 110921326592,
                            "usedPercent": 37.36,
                            "inodesTotal": 0,
                            "inodesUsed": 0,
                            "inodesFree": 0,
                            "inodesUsedPercent": 0
                        }
                    ],
                    "goFree": 0,
                    "goHome": "D:\\webtools\\go",
                    "goName": "GoLang",
                    "goRunTime": 60291,
                    "goStartTime": "2024-11-07 16:30:19",
                    "goTotal": 0,
                    "goUsage": 0.24,
                    "goUsed": 41807872,
                    "goUserDir": "Y:\\book\\go\\gf\\gfast",
                    "goVersion": "go1.23.0",
                    "memFree": 4348194816,
                    "memTotal": 17066786816,
                    "memUsage": 74,
                    "memUsed": 12718592000,
                    "sysComputerIp": "192.168.3.104",
                    "sysComputerName": "pccqyhm",
                    "sysOsArch": "x86_64",
                    "sysOsName": "windows"
                }
            }
        }
    },

] as MockMethod[]
